package com.tim.dao;

import com.tim.pojo.Pet;

import java.sql.SQLException;
import java.util.List;

/**
 * 作者：Tim
 * 时间：2021/4/28 20:23
 */
public interface PetDao {
    int deletePet(int id) throws SQLException;
    int addPet(Pet pet) throws SQLException;
    Pet selectOne(int id) throws SQLException;
    int updatePet(Pet pet) throws SQLException;
    List<Pet> searchPet(String owner) throws SQLException;
    List<Pet> limit(Integer currentPage,Integer pageSize,String owner) throws SQLException;
    int count(String owner) throws SQLException;
}
